import { defRequest } from '../utils/request'

const getLoadCurveByRedis = (params: any) => {
  return defRequest.post<any>('/tdengine/sisdata/getLoadCurveByRedis', params, { showLoading: false, timeout: 50000 })
}

const getfueldispatch = (params: any) => {
  return defRequest.post<any>('/mis/cpo/fueldispatch/getOne', params, { showLoading: false, timeout: 50000 })
}

const getVehicleattendChart = (params: any) => {
  return defRequest.post<any>('/mis/hik/vehicleattend/getVehicleattendChart', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getVehicleattendList = (params: any) => {
  return defRequest.post<any>('/mis/hik/vehicleattend/listPage2', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getVehicleattendTimeline = (params: any) => {
  return defRequest.post<any>('/mis/hik/vehiclecross/timeline', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getMonthcompplan = (params: any) => {
  return defRequest.post<any>('/mis//cpo/monthcompplanDetail/listData', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getTicketNumBySta = (params: any) => {
  return defRequest.post<any>('/tdengine/sisdata/getTicketNumBySta', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getTicketListBySta = (params: any) => {
  return defRequest.post<any>('/tdengine/sisdata/getTicketListBySta', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getLimNumBySta = (params: any) => {
  return defRequest.post<any>('/tdengine/sisdata/getLimNumBySta', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getLimListBySta = (params: any) => {
  return defRequest.post<any>('/tdengine/sisdata/getLimListBySta', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getUserTypeNum = (params: any) => {
  return defRequest.post<any>('/mis/hik/attend/getUserTypeNum', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getAttendList = (params: any) => {
  return defRequest.post<any>('/mis/hik/attend/listPage', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getInoutTimeline = (params: any) => {
  return defRequest.post<any>('/mis/hik/inout/timeline', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getVisitingList = (params: any) => {
  return defRequest.post<any>('/mis/hik/visiting/listPage', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getInoutListPage2 = (params: any) => {
  return defRequest.post<any>('/mis/hik/inout/listPage2', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getLoadCurve = (params: any) => {
  return defRequest.post<any>('/tdengine/sisdata/loadcurve', params, {
    showLoading: false,
    timeout: 50000
  })
}

const getHeating = (params: any) => {
  return defRequest.post<any>('/mis/cpo/heating/getOne', params, {
    showLoading: false,
    timeout: 50000
  })
}

export default {
  getLoadCurveByRedis,
  getfueldispatch,
  getVehicleattendChart,
  getMonthcompplan,
  getVehicleattendList,
  getVehicleattendTimeline,
  getTicketNumBySta,
  getTicketListBySta,
  getLimNumBySta,
  getLimListBySta,
  getUserTypeNum,
  getAttendList,
  getInoutTimeline,
  getVisitingList,
  getInoutListPage2,
  getLoadCurve,
  getHeating
}
